package com.baicaoyuan.web.common;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 功能描述：邀请码
 *
 * @author 罗富祥
 * 创建时间： 2018/8/17
 */

@Data
@Component
@ConfigurationProperties(prefix = "platform")
public class PlatformIdConfig {
    private String id;
    private String telephone;

    private Double percent_grow;
    private Double percent_myself;
    private Double percent_direct;
    private Double percent_indirect;
    private Double percent_teamleader;
    private Integer price;
    private Integer circulation;
    private Integer leader_direct;
    private Integer leader_all;
    private String flow_cron;
    /**
     * 交易手续费
     */
    private Double service_charge;
    /**
     * 手续费累计账号
     */
    private String service_charge_user_id;

    /**
     * 获取平台的root id
     *
     * @return
     */
    public Long getPlatformId() {
        return Long.parseLong(id);
    }
}
